package com.emcom.gotour.mvc.message;

import javax.servlet.http.HttpServletRequest;

import org.springframework.context.MessageSource;

import com.emcom.gotour.utils.LocaleUtils;

public enum CategoryMessage {
	ID("category.content.id"),Name("category.content.name");
	private String message;
	private CategoryMessage(String message) {
		this.message = message;
	}
	public String value(HttpServletRequest request, MessageSource messageSource) {
		return messageSource.getMessage(message, null, LocaleUtils.getLocale(request));
	}
}
